package com.ck.ckcloud.networkmanagement.domain;

import com.ck.ckcloud.networkmanagement.domain.entity.Resource;
import com.ck.ckcloud.networkmanagement.infrastructure.repository.ResourceRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 网管资源工厂类
 *
 * @author Aiden <a href="mailto:adam602260@gmail.com"/>
 * @version ResourceFactory.java v0.1
 * @create 2019-09-18 19:19
 */
@Component
public class ResourceFactory {

	@Autowired
	private ResourceRepository resourceRepository;

	/**
	 * 生产一个空属性的网管资源
	 * @return
	 */
	public Resource createResource(){
		return new Resource(resourceRepository);
	}

}
